import React, {PureComponent} from 'react';
import {
	Button,
	StyleSheet,
	View
} from 'react-native';
import OcrModule from './OcrModule';

/**
 * @FileName: OcrModuleDemo
 * @Author: mazaiting
 * @Date: 2018/9/21
 * @Description:
 */
class OcrModuleDemo extends PureComponent {
	render() {
		return (
			<View style={styles.container}>
				<Button
					title='开启页面'
					onPress={() => OcrModule.startOcrActivity()}
				/>
			</View>
		)
	}
}

/**
 * 样式属性
 */
const styles = StyleSheet.create({
	container: {
		backgroundColor: '#DDD'
	}
});

/**
 * 导出当前Module
 */
module.exports = OcrModuleDemo;